home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / misc / AreaCode.lha / AreaCode.doc < prev    next >
Text File  |  1995-08-13  |  7KB  |  192 lines

  1.  
  2. AreaCode v1.29 13-Aug-95 by Bill Beogelein 810-473-2020 (BBS)
  3.  
  4.   /*
  5.    *  Usage #1:
  6.    *     Pass United States, Canadian area code, returns geographic location.
  7.    *     (Now includes international country codes, too.)
  8.    *
  9.    *   Usage #2:
  10.    *     Pass 2 letter state name, returns all area codes used in that state.
  11.    *     Supports '?' wildcard to match any single character.
  12.    *
  13.    *  You can prompt the user for input with the '-p' option.
  14.    *  AreaCode -p                   (Prompt for areacodes until user hits RETURN)
  15.    *  AreaCode -p 000               (Prompt for 1 areacode then exit)
  16.    *  AreaCode -p 000 000           (Prompt for 2)
  17.    *  AreaCode -p 000 000 000       (Prompt for 3)
  18.    *  AreaCode -p a b c d           (Prompt for 4)
  19.    *  AreaCode -p dummy dummy dummy (Prompt for 3)
  20.    *
  21.    *  AreaCode -s 810         (Do NOT pipe stderr into stdout.)
  22.    *  AreaCode -h             (Show HELP screen & copyright notice.)
  23.    *
  24.    *  The Amiga ShareWare HeadQuarters BBS
  25.    *  Bill Beogelein
  26.    *  Box 530441
  27.    *  Livonia, MI 48153 USA
  28.    *  810-473-2020 BBS, 2-lines, Supra 28k8, Fido 1:2410/207
  29.    *  File Requ' magic-name AREACODE for latest publicly distributable release.
  30.    *  Please pay shareware fees to keep software coming.
  31.    *
  32.    *  Future plans:
  33.    *     Needs: time zones.
  34.    *     Needs: full state names <-> state abbr <-> areacodes lookups.
  35.    *     Needs: Sort areacodes within each state.
  36.    *     Needs: Sort city names within each state.
  37.    *     Needs: Make PURE/RESIDENT
  38.    *     Needs: At least 3-5 cities for each areacode.
  39.    *     Needs: Compressed data.
  40.    *     Needs: Allow country->areacode searches.
  41.    *
  42.    *  xxx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
  43.    *
  44.    *  History:
  45.    *
  46.    *  v1.29 Sunday 13-Aug-95 06:54:11
  47.    *     Added 70 new country codes.  If given country code, finds country.
  48.    *     Added new areacodes : 334 520 562 970 360 770 281 540 630 407 941 954
  49.    *     Added to state lines: 714 818 516 709
  50.    *     Corrected spelling error in 407 Florida.
  51.    *     905 is now listed under both Canada and Ontario (as all provinces are).
  52.    *     Updated copyright notice to 1987-1995.
  53.    *     Added more cities to 516 and 407
  54.    *     Uploaded to aminet comm/misc.
  55.    *
  56.    *  v1.28 Wednesday 11-Jan-95 18:57:29
  57.    *     Added 903 and 915 onto TX listing.
  58.    *     Added areacode 610
  59.    *     Added more cities to 410 404 210 313 810 215.
  60.    *     Moved 903 from Mexico to Texas
  61.    *     Moved 905 from Mexico to Ontario
  62.    *     Correct wrongs cities in 409 and 713
  63.    *     My thanks to Colin Caulkins for additional tips on making AreaCode better.
  64.    *     Added 905 onto CN and ON listing.
  65.    *
  66.    *  v1.27 Sun 23-Jan-94 15:07:14
  67.    *     Added ac 910 (My thanks to Joe Stroh)
  68.    *     910 for Wilkesboro,NC
  69.    *
  70.    *  v1.26 Sat 15-Jan-94 08:07:17
  71.    *     Added ac 210 (My thanks to Juan Villarreal.)
  72.    *
  73.    *  v1.25 Thu 13-Jan-94 23:40:57
  74.    *     Recompiled with SAS v6.3 instead of v6.1.
  75.    *     Broke 313 into 313 and 810.
  76.    *     Updated copyright notice to 1994 and new 810 ac.
  77.    *     Added 917 and 909.
  78.    *     Added Guam ac.
  79.    *     Added more cities to 415, 510, 619.
  80.    *     User's prompted input can't overflow input buffer.
  81.    *
  82.    *  v1.24 Mon 14-Dec-92 05:33:37
  83.    *     Recompiled with SAS v6.1 instead of v6.0.
  84.    *     'Searches' also show state abbrv.
  85.    *     "VA-Viginia, 804, 703" added missing "R"
  86.    *     Newfoundland is 1 word, NOT 2.
  87.    *     Added Jamaica.
  88.    *     Added more 313/517/906 cities.
  89.    *     Added 819,204,306,403,506 to "CN-Canada" list.
  90.    *     Compile-date added to $VER: string.
  91.    *
  92.    *  v1.23 Sat 14-Nov-92 20:59:59
  93.    *     Recompiled with SAS v6.0 instead of Aztec.
  94.    *     Used WB2.0 headers.
  95.    *     Added -prompt option which asks user for input.
  96.    *     All stderr is now piped into stdout (for Cnet-BBS usage).
  97.    *     Added -stderr option which overrides the above.
  98.    *     Added -help option.
  99.    *     Returns OK, WARN, ERROR, FAIL for correct DOS script use.
  100.    *     Added areacode 706.
  101.    *
  102.    *  v1.22 Sun 22-Mar-92 03:52:42
  103.    *     Added WB2.04 "$VER:" support.
  104.    *     (You can now find the version # by using "c:Version AreaCode")
  105.    *     Recompiled w/Aztec 5.2a instead of v5.0b
  106.    *
  107.    *     Major cities that changed to 310 (November 2nd, 1991):
  108.    *     Long Beach, Downey, Whittier, Norwalk, Lakewood, Redondo Beach, San Pedro,
  109.    *     Gardena, El Segundo, Santa Monica, Century City, Malibu....
  110.    *
  111.    *     Central Los Angeles, and Hollywood are staying at 213!
  112.    *
  113.    *     510 Berkeley, CA
  114.    *     309 is IL but wasn't listed under AC IL
  115.    *     410 Annapolis, MD (new)
  116.    *
  117.    *  v1.21 Fri 19-Jul-91 00:17:49
  118.    *     Added 719 Colorado Springs, CO
  119.    *     Fixed 303, no longer "all of CO"
  120.    *
  121.    *  v1.20 Tue 25-Jun-91 19:30:35
  122.    *     Added 407 Orlando, FL
  123.    *
  124.    *  v1.19 Wed 29-Aug-90 20:37:14
  125.    *     Added 908 NJ
  126.    *     From: static BYTE *ac2st[207]={
  127.    *       To: static BYTE *ac2st[]={
  128.    *     Re-compiled w/Aztec v5.0b instead of v3.6
  129.    *     Made to compile w/32 ints instead of 16 ints
  130.    *     exit() returns a LONG
  131.    *     No need to -z6300 for extra space
  132.    *     Re-packed w/LHarc instead of ARC
  133.    *
  134.    *  v1.18 02-Mar-90
  135.    *     Added 508 to state Mass.
  136.    *     Must "comp DOS1:src2/AreaCode.c -dBB -z6300" for extra string space.
  137.    *
  138.    *  v1.17 15-Jan-90
  139.    *     Fixed FL spelling
  140.    *     Fixed FL ac 804-->904
  141.    *
  142.    *  v1.16 01-Jan-90
  143.    *     Added 310 for Feb92 start-up
  144.    *     Upper/lower case errors fixed
  145.    *
  146.    *  v1.15 02-Nov-89
  147.    *     Added more cities to 708 312 815
  148.    *
  149.    *  v1.14 24-Oct-89
  150.    *     Correctly all case
  151.    *     ac2st[] not terminated with 0
  152.    *     Crash if "1> AreaCode ???", fixed
  153.    *
  154.    *  v1.13 04-Oct-89
  155.    *     Added 708
  156.    *     Added 408 to CA list
  157.    *     SECRET removed
  158.    *
  159.    *  v1.12 18-Jul-89
  160.    *     Added 508
  161.    *
  162.    *  v1.11 09-Mar-89
  163.    *     Added 407, 409, 819
  164.    *     Added Sharewarer's BBS #
  165.    *
  166.    *  v1.10 06-Feb-89
  167.    *     Removed dup ac 212 NY
  168.    *     String array now has 201 elements
  169.    *
  170.    *  v1.9  20-Nov-87
  171.    *     Added 10 Canadian province abbr
  172.    *
  173.    *  v1.8  01-Nov-87
  174.    *     Added state->AreaCode conversion
  175.    *
  176.    *  v1.7  07-Jul-87
  177.    *     Supports '?' as 1 char wildcard
  178.    *     Moved zipcodes/cities from switch/case into large array
  179.    *     (made about 1K smaller)
  180.    *     exit(SUCCESS/FAIL);
  181.    *     Added beep()
  182.    *     Sorted areacodes.
  183.    *     Added ac 800/900
  184.    *
  185.    *  v1.6  03-Jun-87
  186.    *     added Canada cities
  187.    *     added 718 NY
  188.    *     added 818
  189.    *
  190.    * *** EOF AreaCode.doc 810-473-2020 BBS ***
  191.    */
  192.